<?php
header('content-Type：application/json');
include './connDB.php';

$result = $conn->query("UPDATE command SET close=1 WHERE id=1");

if($result->rowCount() > 0){
	$return['success']=true;
	$return['msg']='OK';
	echo json_encode($return);
}else{
	$return['success']=false;
	$return['msg']='Fail';
	echo json_encode($return);
}
?>

